import {defineStore} from 'pinia'
import { ref } from 'vue'
// 参考 https://pinia.vuejs.org/zh/core-concepts/
// 使用组合式函数会让 SSR 变得更加复杂
export const useShopHomeCounterStore = defineStore('shop-home-counter',()=> {
    const count = ref(0)
    function increment() {
      count.value++
    }
  
    return { count, increment }
})